#ifndef VIDEORECORDTOOL_H
#define VIDEORECORDTOOL_H

#include <QObject>
#include "VideoRecordThread.h"

class VideoRecordTool : public QObject
{
    Q_OBJECT

private:
    VideoRecordThread *recordThread = nullptr;

public:
    explicit VideoRecordTool(QObject *parent = nullptr);

    bool isRecording = false;

    void startRecord();

    void stopRecord();

signals:
    void recordState(VideoRecordState state, int duration);
};

#endif // VIDEORECORDTOOL_H
